﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPMS.Log.Core
{
    /// <summary>
    /// 执行安全上下文提供者
    /// </summary>
    /// <remarks>用于提供安全上下文</remarks>
    /// <history>
    /// [zanezeng]               2010/1/13 11:54    创建
    /// </history>
    public interface ISecurityContextProvider
    {
        /// <summary>
        /// 创建对应给定请求对象的执行安全上下文
        /// </summary>
        /// <param name="consumer">请求安全上下文的请求对象</param>
        /// <returns>创建的对应给定请求对象的执行安全上下文</returns>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]               2010/1/13 11:56    创建
        /// </history>
        ISecurityContext CreateSecurityContext( object consumer );
    }
}
